<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * 微信卡券-会员卡二维码
 */
class WxCardQrcode extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //卡券投放二维码
        Schema::create('wx_card_qrcodes', function (Blueprint $table) {
            $table->increments('id')->comment('自增序号');
            $table->string('type', 50)->default('')->comment('二维码类别');
            $table->string('title', 200)->default('')->comment('二维码名称');
            $table->text('card_info')->nullable()->comment('单张卡券信息');
            $table->text('card_list')->nullable()->comment('多张卡券');
            $table->text('qrcode_info')->nullable()->comment('二维码信息');
            $table->unsignedTinyInteger('status_is')->default(0)->comment('二维码状态');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wx_card_qrcodes');
    }
}
